@extends('admin.base.base')


@section('content')
        
        
        <script type="text/javascript">
            function doDel(id){
                if(confirm("确定要删除吗")){
                    var form = document.myform;
                    form.action = "/admin/companyindex/"+id;
                    form.submit();
                }
            }
        </script>
        <form action="/admin/companyindex/" method="post" name="myform" style="display:none">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
            <input type="hidden" name="_method" value="delete">
        </form>

<!-- Content Header (Page header) -->
    <section class="content-header">
          <h1>
            注册会员信息输出表
            <small>preview of simple tables</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="#">注册会员管理</a></li>
            <li class="active">浏览注册会员信息</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 class="box-title"><i class="fa fa-th"></i> 注册会员信息管理</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                   
                  <table class="table table-bordered">
                  
                    <tr>
                      
                      
                      <td>图片</td>
                      <th>内容</th>
                      <th>添加时间</th>
                       <td>操作</td>
                      
                    
                    </tr>
                    @foreach($list as $ci)
                        <tr>
                        <td><img src="/uploads/companyindex/s_{{ $ci->picname }}"></td>
                        <td>{{ $ci->content }}</td>
                        <td>{{  date( "Y-m-d",$ci->addtime) }}</td>
                        <td><button class="btn btn-xs btn-danger"><a href="javascript:doDel({{ $ci->id }})" style="color:black">删除</a></button> 
                          <button class="btn btn-xs btn-primary"><a href="/admin/companyindex/{{ $ci->id }}/edit" style="color:black">编辑</a></button> </td>
                        
                        
                        </tr>
                    @endforeach
                   
                  </table>
                </div><!-- /.box-body -->
                <div class="box-footer clearfix">
                  <ul class="pagination pagination-sm no-margin pull-right">
                    <li><a href="#">&laquo;</a></li>
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">&raquo;</a></li>
                  </ul>
                </div>
              </div><!-- /.box -->

            </div><!-- /.col --> 
          </div><!-- /.row -->
        </section><!-- /.content -->
        
    @endsection






